/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.awt.Color;
/*     */ import java.util.Locale;
/*     */ import net.minecraft.client.renderer.BufferBuilder;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.client.renderer.OpenGlHelper;
/*     */ import net.minecraft.client.renderer.Tessellator;
/*     */ import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
/*     */ import net.minecraft.entity.EntityLivingBase;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class is
/*     */   extends rq
/*     */ {
/*  19 */   private static final Color m = new Color(0, 0, 0, 63);
/*     */   private bh l;
/*     */   private bh t;
/*     */   private bh d;
/*     */   
/*     */   public is(wo wo1, ConfigurationSection configurationSection) {
/*  25 */     super(wo1, configurationSection);
/*     */     
/*  27 */     this.l = wo1.v(configurationSection.getString("text", ""));
/*  28 */     this.t = wo1.v(configurationSection.getString("background", "0,0,0,63"));
/*  29 */     this.d = wo1.v(configurationSection.getString("font", ""));
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(EntityLivingBase entityLivingBase, float f, boolean bool) {
/*  35 */     String str1 = this.l.z();
/*  36 */     String str2 = this.t.z();
/*  37 */     String str3 = this.d.z();
/*     */ 
/*     */     
/*  40 */     Color color = null;
/*  41 */     if (!"hide".equalsIgnoreCase(str2)) {
/*  42 */       color = jo.v(str2);
/*  43 */       if (color == null) {
/*  44 */         color = m;
/*     */       }
/*     */     } 
/*     */     
/*  48 */     float f1 = OpenGlHelper.lastBrightnessX;
/*  49 */     float f2 = OpenGlHelper.lastBrightnessY;
/*  50 */     boolean bool1 = this.g.z();
/*  51 */     if (bool1) {
/*  52 */       OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, 240.0F, f2);
/*     */     }
/*     */     
/*  55 */     v(str1, str3, color, bool);
/*     */     
/*  57 */     if (bool1) {
/*  58 */       OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, f1, f2);
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(String str, Object object) {
/*  87 */     switch (str.toLowerCase(Locale.ROOT)) {
/*     */       case "background":
/*  89 */         this.t = this.t.v((String)object);
/*     */         return;
/*     */       case "text":
/*  92 */         this.l = this.t.v((String)object);
/*     */         return;
/*     */     } 
/*     */     
/*  96 */     super.v(str, object);
/*     */   }
/*     */ 
/*     */   
/*     */   public Object v(String str) {
/* 101 */     switch (str.toLowerCase(Locale.ROOT)) {
/*     */       case "height":
/* 103 */         return "10";
/*     */       case "width":
/* 105 */         return String.valueOf(af.v(this.l.z(), null, true));
/*     */       case "background":
/* 107 */         return this.t.z();
/*     */       case "text":
/* 109 */         return this.l.z();
/*     */     } 
/*     */     
/* 112 */     return super.v(str);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\is.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */